package com.freeter.modules.controller.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/web/link")
public class LinkWebController {
    @GetMapping("/approve-reloc-app")
    public ModelAndView approveRelocAppPage(@RequestParam(value = "id", required = false) String id,
                                            @RequestParam(value = "token", required = false) String token) {
        // 这里只渲染页面，具体业务逻辑由Service处理
        ModelAndView mv = new ModelAndView("link-approve-reloc-app");
        mv.addObject("id", id);
        mv.addObject("token", token);
        return mv;
    }

    @GetMapping("/acknowledge-damage")
    public ModelAndView acknowledgeDamagePage(@RequestParam(value = "id", required = false) String id,
                                              @RequestParam(value = "token", required = false) String token) {
        ModelAndView mv = new ModelAndView("link-acknowledge-damage");
        mv.addObject("id", id);
        mv.addObject("token", token);
        return mv;
    }
    // 其他Web Portal相关页面可继续补充
} 